home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group00b.txt
/
000088_icon-group-sender_Mon Oct 23 08:18:31 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2001-01-03
|
1KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id e9NFIKH18444
for icon-group-addresses; Mon, 23 Oct 2000 08:18:20 -0700 (MST)
Message-Id: <200010231518.e9NFIKH18444@baskerville.CS.Arizona.EDU>
From: Atle <trollet@skynet.be>
X-Newsgroups: comp.lang.icon
Subject: Re: How to "declare" a string?
Date: Mon, 23 Oct 2000 14:39:37 +0200
X-Trace: news0.skynet.be 972303850 19771 194.78.236.176 (23 Oct 2000 12:24:10 GMT)
X-Complaints-To: abuse@skynet.be
X-Accept-Language: en
To: icon-group@cs.arizona.edu
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 742
symbiot@my-deja.com wrote:
>
> best I can tell, it is choking because UPPER has not been "declared".
I am a *total* newbie, but I may have an answer to this one
(Icon programmer please correct this if wrong)
Icon will extract as much information from your statements as possible.
so, if you initialize a variable like this:
i := 0
it will not need an
i : INTEGER to figure it out, it knows that 0 is an integer, and will declare i implicitely.
the same with a string:
s := ""
will implicitely declare s to be string type.
If in the start of your program, you set
UPPER := ""
you might solve an 'undeclared' reference ...
PS!
Please have this checked. It is just a suggestion.
ENDPS!
--
Best wishes, Atle
users.skynet.be/atle